
import React, { Component } from 'react'
import {withCopyRight,withAxios} from './withCopyRight';
import Son from "./Son";

class index extends Component {

    constructor(){
        super();
        this.ttt="hello";
    }

    testf=()=>{
        console.log("this.ttt",this.ttt);
        this.eat();
    }

    goUrl=()=>{
        console.log("parent:this.props",this.props);
        // this.props.history("/");
    }

    render() {
        return (
            <>
                <div>高阶组件</div>
                <input type="button" value="测试" onClick={this.testf} />
                <input type="button" value="跳转" onClick={this.goUrl} />
                <hr/>
                <Son></Son>
            </>
        )
    }
}

// export default index;

export default withCopyRight(index);

// export default withAxios(index);

